package cn.chencq.spider.novel.service.book.impl;

import cn.chencq.spider.novel.service.book.BookService;
import cn.chencq.spider.novel.utils.ParseUtils;
import cn.chencq.spider.novel.vo.Book;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

public class BookServiceImpl implements BookService {

    @Override
    public Book queryById(String id) {
        JSONObject query = new JSONObject();
        query.put("objectId", id);
        JSONObject object = ParseUtils.queryByParam("Book", query.toJSONString());
        return null;
    }

    @Override
    public Book queryByBookName(String bookName) {
        JSONObject query = new JSONObject();
        query.put("bookName", bookName);

        JSONObject object = ParseUtils.queryByParam("Book", query.toJSONString());
        return null;
    }

    @Override
    public List<Book> queryByPage(int pageNo, int pageSize) {
        JSONObject object = ParseUtils.queryByPage("Book", pageNo, pageSize);
        return null;
    }

    @Override
    public void updateById(Book book) {

    }


}
